{include file="public/header" /}
<body class="bgc hide-top">
<div class="cart-container">
    <img src="/static/index/img/icon57.png" alt="">
    <div class="cart-content profile-content">
        <ul class="profile-set">
            <li onclick="load_href('{:url(\'user/setting\')}',2)">
                <img src="/static/index/img/icon59.png" alt="">
            </li>
        </ul>

        <div class="profile-news">
            <p class="flex-center">
                <img src="{if $user.photo}{$user.photo}{else}cache('system')['default_photo']{/if}" alt="">
            </p>
            <div class="rgt">
                <p>{$user.nickname}【{$user.code}】</p>
                <div style="padding: 10px 0;font-size: 15px;"><?php echo substr_replace($user->mobile,'****',3,4);?></div>
                <div style="display: flex;">
                    {if $user.level}
                    <div style="background: #000;padding: 3px 10px;border-radius: 10px;display: flex;align-items: center;justify-content: center">
                        <img src="/static/index/img/icon60.png" alt="">{$user.level.title}
                    </div>
                    {/if}
                    {if $user.team}
                    <div style="background: #000;border-radius: 10px;padding: 3px 10px; margin-left: 5px; display: flex;align-items: center;justify-content: center">
                        <img src="/static/index/img/icon60.png" alt="">{$user.team.title}
                    </div>
                    {/if}
                    {if $user.is_merchant == 1}
                    <div style="background: #000;border-radius: 10px;padding: 3px 10px; margin-left: 5px; display: flex;align-items: center;justify-content: center">
                        <img src="/static/index/img/icon60.png" alt="">商家
                    </div>
                    {/if}
                </div>

            </div>
        </div>

        <ul class="profile-nav">
            {foreach name="assets" key="key" item="vo"}
            <li onclick="load_href('{:url(\'account/record\',[\'type\'=>$key])}',2)">
                <p><span><?php echo $user->assets->$key;?></span></p>
                <div>{$vo}</div>
            </li>
            {/foreach}
        </ul>
        <div class="profile-order">
            <div class="flex-layout">常用功能</div>
            <ul class="profile-order-list profile-common">
                <li>
                    <a href="{:url('merchant/shop_index')}">
                        <p class="flex-center">
                            <img src="/static/index/img/shopicon.png" alt="">
                        </p>
                        <div>商品管理</div>
                    </a>
                </li>
                <li>
                    <a href="{:url('merchant/my_order')}">
                        <p class="flex-center">
                            <img src="/static/index/img/ordericon.png" alt="">
                        </p>
                        <div>订单管理</div>
                    </a>
                </li>
            </ul>
        </div>
    </div>
</div>

{include file="public/menu" select="4" /}

</body>
{include file="public/footer"/}
</html>